package com.xju.bootdemo.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xju.bootdemo.entity.Employee;
import com.xju.bootdemo.mapper.EmployeeMapper;
import com.xju.bootdemo.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lj
 * @Date 2023/12/6 18:29
 * @Version 1.0
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {


    @Override
    public List<Employee> selectAll() {
        return baseMapper.selectAll();
    }

    @Override
    public IPage<Employee> pageList(Page<?> page) {
        return baseMapper.pageList(page);
    }


}
